POV-Ray : Newsgroups : povray.newusers : How to make shiny white : How to make shiny white Server Time
5 Sep 2024 02:12:55 EDT (-0400)
  How to make shiny white  
From: Hershel Robinson
Date: 19 Dec 2001 10:14:21
Message: <3c20aecd@news.povray.org>
I have succeeded in making shiny spheres but I am failing to make one of
them white.  When I make one white, it is not shiny.

I am using white light, but when I change the color of the light, then the
color of the sphere changes (naturally).

I have shiny white plastic in my house so I know it exists in 'real life'
and I assume POV-Ray can also do this.

Below is my code which does not work.  Any assistance is appreciated.

Thanks,
Hershel

PS: CODE:

#include "colors.inc"

#declare Width=6;
#declare LightX=27;
#declare LightZ=-30;

#declare SphiraCamera =
   camera { location <0,-2,-30>
            look_at <0,-2,0>
}

camera {SphiraCamera}

sky_sphere {
      pigment{ color Black } file://rgb <1,.1,.1>}
}

// main light
light_source {
    <LightX, 30, LightZ>
    color White
}
light_source {
    <LightX, 30, LightZ>
    color White * .9
}
// end main light

#declare sphira =
   sphere { <0,0,0>,1.2
      no_shadow
   }

// keter
object {
   sphira
   texture {
      pigment { color rgb<.9, .9, .9> }
      finish  {
         diffuse 0.6
         ambient 0.4
         phong 1
         phong_size 60
      }
   }
   translate 6*y
}
// bina
object {
   sphira
   texture {
      pigment { color rgb<0, 1.0, 0> }
      finish  {
         diffuse 0.6
         ambient 0.2
         phong 1
         phong_size 60
      }
   }
   translate <-1*Width,4>
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.